package com.fishing.service.impl;

import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.fishing.mapper.EditLogMapper;
import com.fishing.entity.EditLog;
import com.fishing.service.EditLogService;

import java.util.List;

@Service
public class EditLogServiceImpl implements EditLogService {

    @Resource
    private EditLogMapper editLogMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return editLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(EditLog record) {
        return editLogMapper.insert(record);
    }

    @Override
    public int insertSelective(EditLog record) {
        return editLogMapper.insertSelective(record);
    }

    @Override
    public EditLog selectByPrimaryKey(Integer id) {
        return editLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(EditLog record) {
        return editLogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(EditLog record) {
        return editLogMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<EditLog> selectAll(String adminId, Integer pageIndex, Integer pageCount) {
        return editLogMapper.selectAll(adminId, pageIndex, pageCount);
    }

    @Override
    public Integer selectCount() {
        return editLogMapper.selectCount();
    }

}





